package com.tust.dao;

import com.tust.domain.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseDao {
    int insertCourse(Course course);
    int deleteCourse(@Param("courseNum") String courseNum);
    int updateCourse(@Param("oldCourseNum") String oldCourseNum, @Param("course") Course course);
    List<Course> selectCourseByCourseNum(@Param("courseNum") String courseNum);
    List<Course> selectCourseByCourseName(@Param("courseName") String courseName);
    List<Course> selectCourseByCredit(@Param("credit") String credit);
    List<Course> selectCourseByOpenSemester(@Param("openSemester") String openSemester);
    List<Course> selectCourseByCourseType(@Param("courseType") String courseType);
    List<Course> selectCourseByClassTimes(@Param("classTimes") String classTimes);
    List<Course> selectCourseByPracticeTime(@Param("practiceTime") String practiceTime);
    List<Course> selectCourseByRegularGradeRate(@Param("regularGradeRate") String regularGradeRate);
    List<Course> selectCourseAll();
}
